<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <script>
        // split 字符串分割成数组
        let str='abcdef'
        str.split('c')
        str.split('')
        str.split('',4)
        console.log(str.split('c'))
        console.log(str.split(''))
        console.log(str.split(),4)  
        // slice用于提取字符串某个部分并以新字符串返回被提取的部分
        let st1='asdfgh'
        console.log(st1.slice(1,6))
        console.log(st1.slice(0,3))
        // 字符串转为小写
        st1='ASDFGH'
        console.log(st1.toLowerCase())
     </script>
</body>
</html>